package com.imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.bo.CreateCompanyBO;
import com.imooc.bo.ModifyCompanyInfoBO;
import com.imooc.bo.QueryCompanyBO;
import com.imooc.bo.ReviewCompanyBO;
import com.imooc.pojo.Company;
import com.imooc.pojo.CompanyPhoto;
import com.imooc.utils.PagedGridResult;
import com.imooc.vo.CompanyInfoVO;

/**
 * <p>
 * 企业表 服务类
 * </p>
 *
 * @author liansen
 * @since 2023-03-28
 */
public interface CompanyService extends IService<Company> {

    /*
    根据公司名称查询公司
     */
    Company getByFullName(String fullName);

    String createCompany(CreateCompanyBO companyBO);

    String resetCompanyReview(CreateCompanyBO companyBO);

    void commitReview(ReviewCompanyBO reviewCompanyBO);

    PagedGridResult queryCompanyListPaged(QueryCompanyBO companyBO, Integer page, Integer limit);

    PagedGridResult getListAll(QueryCompanyBO companyBO, Integer page, Integer limit);

    CompanyInfoVO getCompanyInfoById(String companyId);

    void reviewCompany(ReviewCompanyBO reviewCompanyBO);

    void modify(ModifyCompanyInfoBO companyInfoBO);

    void saveOrUpdatePhotos(ModifyCompanyInfoBO companyInfoBO);

    CompanyPhoto getPhotos(String companyId);
}
